package org.itboys.mobile.entity.mysql.order;

import org.itboys.mongodb.entity.BaseMySqlEntity;

import java.math.BigDecimal;

/**
 * Created on 2017/10/21.
 * @朱坤涛
 */
public class PearlOrderProduct extends BaseMySqlEntity{
    private Long orderId; //订单Id
    private BigDecimal price; //价格
    private Integer num;//商品数量
    private Long productId; //商品Id
    private String name; //商品名称
    private String number;//商品编号
    private String image;//商品图片
    private String standard;//规格
    private BigDecimal agentRebate;//代理商佣金。确认收货时存储
    private BigDecimal shopRebate;//门店佣金。确认收货时储存
    private BigDecimal recommenderRebate;//推荐人佣金。创客或高级创客推荐佣金。确认收货时储存
    private BigDecimal recommendeAgentRebate;//推荐代理商的佣金。确认收货时储存
    private BigDecimal recommendeShopRebate;//推荐门店的佣金。确认收货时储存



    //实际需要展示佣金。不存储，根据传入用户Id实时计算,决定用户佣金在本个订单中是多少.
    private BigDecimal memberRebate;
    //佣金属性不输出。生成订单时存储
    private BigDecimal agentAmount; //商品中代理商推广佣金

    private BigDecimal shopAmount; //商品中门店推广佣金
    private BigDecimal sellerAmount;//商品中创客推广佣金
    private Integer isReturn=0;//是否是退回商品，0否，1是（不计算收益）,2,正在处理
    private Long agentId;//用于拆分订单时，记录商品属于哪一个代理商，不储存。

    public PearlOrderProduct() {
    }
    public PearlOrderProduct(Long orderId, Long productId, BigDecimal price,
                             String name, String number,
                               String image,String standard, Integer num) {
        this.orderId = orderId;
        this.productId=productId;
        this.price = price;
        this.name = name;
        this.number=number;
        this.image=image;
        this.standard = standard;
        this.num = num;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getStandard() {
        return standard;
    }

    public void setStandard(String standard) {
        this.standard = standard;
    }

    public BigDecimal getAgentRebate() {
        return agentRebate;
    }

    public void setAgentRebate(BigDecimal agentRebate) {
        this.agentRebate = agentRebate;
    }

    public BigDecimal getShopRebate() {
        return shopRebate;
    }

    public void setShopRebate(BigDecimal shopRebate) {
        this.shopRebate = shopRebate;
    }

    public BigDecimal getRecommenderRebate() {
        return recommenderRebate;
    }

    public void setRecommenderRebate(BigDecimal recommenderRebate) {
        this.recommenderRebate = recommenderRebate;
    }

    public BigDecimal getRecommendeAgentRebate() {
        return recommendeAgentRebate;
    }

    public void setRecommendeAgentRebate(BigDecimal recommendeAgentRebate) {
        this.recommendeAgentRebate = recommendeAgentRebate;
    }

    public BigDecimal getRecommendeShopRebate() {
        return recommendeShopRebate;
    }

    public void setRecommendeShopRebate(BigDecimal recommendeShopRebate) {
        this.recommendeShopRebate = recommendeShopRebate;
    }

    public BigDecimal getMemberRebate() {
        return memberRebate;
    }

    public void setMemberRebate(BigDecimal memberRebate) {
        this.memberRebate = memberRebate;
    }

    public BigDecimal getAgentAmount() {
        return agentAmount;
    }

    public void setAgentAmount(BigDecimal agentAmount) {
        this.agentAmount = agentAmount;
    }

    public BigDecimal getShopAmount() {
        return shopAmount;
    }

    public void setShopAmount(BigDecimal shopAmount) {
        this.shopAmount = shopAmount;
    }

    public BigDecimal getSellerAmount() {
        return sellerAmount;
    }

    public void setSellerAmount(BigDecimal sellerAmount) {
        this.sellerAmount = sellerAmount;
    }

    public Integer getIsReturn() {
        return isReturn;
    }

    public void setIsReturn(Integer isReturn) {
        this.isReturn = isReturn;
    }

    public Long getAgentId() {
        return agentId;
    }

    public void setAgentId(Long agentId) {
        this.agentId = agentId;
    }


}
